﻿using Avalonia.Controls;
using MarkdownRow.Assets;

namespace MarkdownRow.Views;

public partial class HelperView : UserControl
{
    public HelperView()
    {
        InitializeComponent();
        // 
    }
}

public static class HelperClass
{
    public static DocItem[] FontHelper => new[]
    {
        new DocItem("bold","粗体","**"),
        new DocItem("italic","斜体","*" ),
        new DocItem("blockquote","说明", ">"),
        new DocItem("ordered", "有序列表","."),
        new DocItem("unordered","无序列表","-"),
        new DocItem("horizontal","分割线","---" ),
        new DocItem("bold-italic","粗斜体","***"),
        new DocItem("strikethrough","删除线","~~"),
        new DocItem("underline","下划线","__"),
        new DocItem("font color","字体颜色","%{color:}%"),
        new DocItem("background color","背景颜色","%{background:}%"),
        new DocItem("font and background color","字体和背景颜色","%{color:red; background:yellow}%")
    };

    public static DocItem[] UsingHelper => new[]
    {
        new DocItem("link","链接","[title](https://www.example.com)"),
        new DocItem("image","图像","![alt text](image.jpg)"),
        new DocItem("table","表单","| column1   | column2       |\n|-----------|---------------|\n|           |             |"),
        new DocItem("code", "代码块","```\n\n```"),
    };
    
    public static DocItem[] ParagraphHelper => new[]
    {
        new DocItem("left side","靠左","p<."),
        new DocItem("right side","靠右","p>."),
        new DocItem("center","居中","p=."),
        new DocItem("ignored","忽视","p=>.")
    };
    
}